package com.example.book.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.book.entity.Book;
import com.example.book.entity.Recommend;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.book.entity.Type;
import com.example.common.dtos.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 凡哥哥
 * @since 2023-11-06
 */
public interface IRecommendService extends IService<Recommend> {
    /**
     * 查询图书类型
     * @param page
     * @param pageSize
     * @param name
     * @return
     */
    ResponseResult<Page> pageInfo(Integer page, Integer pageSize, String name);
    /**
     * 添加图书推荐
     * @param book
     * @return
     */
    ResponseResult addRecommend(Book book);
    /**
     * 删除
     * @param ids
     * @return
     */
    ResponseResult deleteRecommend(int [] ids);
    /**
     * 推荐榜图书详细查询
     * @return
     */
    ResponseResult recommendAll(Integer page, Integer pageSize);
}
